<!-- form表单视图 -->
<div style="margin-top:30px">
    <form class="form-horizontal common-form" id="form-save" method="post" action="/basic/currency/save" onsubmit="return false;" autocomplete="off">
    <input type=hidden value="{{$row['id'] ?? ''}}" name="id" id="id">

        <div class="form-group row form-item">
            <label style=" font-weight: normal" for="c-mch_name" class="control-label col-xs-12 col-sm-2">
            <span style="color:red">*</span> 名称：</label>
            <div class="col-xs-12 col-sm-10">
                <div class="row">
                    <input  id="name" class="form-control col-sm-5" name="name" type="text" value="{{$row['name'] ?? ''}}" placeholder="" data-rule="名称:required">
                    <span class="col-sm-7 color-6A6969"> 请输入货币名称。如 人民币。</span>
                </div>
                <span class="msg-box" style="position:static;" for="name"></span>
            </div>
        </div>

        <div class="form-group row form-item">
            <label style=" font-weight: normal" for="c-mch_name" class="control-label col-xs-12 col-sm-2">
            <span style="color:red">*</span> 货币代码：</label>
            <div class="col-xs-12 col-sm-10">
                <div class="row">
                    <input  id="sort_name" class="form-control col-sm-5" name="sort_name" type="text" value="{{$row['sort_name'] ?? ''}}" placeholder="" data-rule="简称:required">
                    <span class="col-sm-7 color-6A6969"> 请输入货币代码 如 CNY。</span>
                </div>
                <span class="msg-box" style="position:static;" for="sort_name"></span>
            </div>
        </div>
        <div class="form-group row form-item">
            <label style=" font-weight: normal" for="c-unit_precision" class="control-label col-xs-12 col-sm-2">
                 单价精度：</label>
            <div class="col-xs-12 col-sm-10">
                <div class="row">
                    <input  id="unit_precision" class="form-control col-sm-5" name="unit_precision" type="text" value="{{$row['unit_precision'] ?? ''}}" placeholder="" >
                    <span class="col-sm-7 color-6A6969"> 单价显示的数据精度。</span>
                </div>
                <span class="msg-box" style="position:static;" for="unit_precision"></span>
            </div>
        </div>
        <div class="form-group row form-item">
            <label style=" font-weight: normal" for="c-unit_precision" class="control-label col-xs-12 col-sm-2">
                金额精度：</label>
            <div class="col-xs-12 col-sm-10">
                <div class="row">
                    <input  id="money_precision" class="form-control col-sm-5" name="money_precision" type="text" value="{{$row['money_precision'] ?? ''}}" placeholder="" >
                    <span class="col-sm-7 color-6A6969"> 单据金额显示的数据精度。</span>
                </div>
                <span class="msg-box" style="position:static;" for="money_precision"></span>
            </div>
        </div>
        <!--<div class="form-group row form-item">
            <label style=" font-weight: normal" for="c-unit_precision" class="control-label col-xs-12 col-sm-2">
                 优先级：</label>
            <div class="col-xs-12 col-sm-10">
                <div class="row">
                    <input  id="priority" class="form-control col-sm-5" name="priority" type="text" value="{{$row['priority'] ?? ''}}" placeholder="" >
                    <span class="col-sm-7 color-6A6969"> 单据金额显示的数据精度。</span>
                </div>
                <span class="msg-box" style="position:static;" for="priority"></span>
            </div>
        </div>-->

       <!-- <div class="form-group row form-item">
            <label style=" font-weight: normal" for="c-mch_name" class="control-label col-xs-12 col-sm-2">
             中间币：</label>
            <div class="col-xs-12 col-sm-10">
                <div class="row radio">
                    <div style="display: inline-block;padding-top: 5px;padding-left: 0" class="col-sm-5">
                    @component('component/radio',['radio'=>[1=>'是',0=>'否'],'name'=>'is_middle','default_key'=>$row['is_middle']??1])
                    @endcomponent
                    </div>
                    <span class="col-sm-7 color-6A6969"> 是否是中间币。</span>
                </div>
                <span class="msg-box" style="position:static;" for="is_middle"></span>
            </div>
        </div>-->


    </form>
    @if(isset($row['id']))
    <!--<div style="text-align: center;font-size: 14px;margin-top:40px">
        <button class="btn btn-write form-prev"> < 上一条 </button> &nbsp;&nbsp;&nbsp;&nbsp;
        <button class="btn btn-write form-next"> 下一条 > </button>
    </div>-->
    @endif
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-3F51B5 btn-sure btn-submit">确定</button>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <button type="reset" class="btn btn-write btn-reset">重置</button>

        </div>
    </div>
</div>

